package com.guoliang.orderService.service;

import com.guoliang.commonUtils.CommonResult;
import com.guoliang.commonUtils.entity.CourseFrontVo;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "service-edu")
@Component
public interface CourseClient {
    @GetMapping("/eduService/course/orderGetCourse/{id}")
    public CourseFrontVo orderGetCourse(@RequestParam String id);
    @GetMapping("/eduService/course/updateCourseBuyCount/{id}")
    public CommonResult upDateBuyCount(@PathVariable String id);
}
